<?php

import('com.yamvc.view.IState');

class BlogPostState implements IState {
	private $_postId;
	private $_page;
	public function __construct($postId,$page=1){
		$this->_postId = $postId;
		$this->_page=$page;
	}
	function init() {
		Controller::instance()->dispatchEvent(new BlogEvent(BlogEvent::GET_POST,array($this->_postId,$this->_page)));
	}
	
}

?>